var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, false, true);
            cm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection2();
            cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 0);
            cm.setStandAloneMode(true);
            cm.inGameDirectionEvent_SetHideEffect(1);
            cm.inGameDirectionEvent_PushScaleInfo(0, 0, 1000, 0, 156, 158);
            cm.curNodeEventEnd(true)
        } else {
            if (status === a++) {
                cm.npc_ChangeController(3004326, "oid=2748788", 62, 171, 2, 12, 112, 0, true, 0, false);
                cm.npc_SetSpecialAction("oid=2748788", "summon", 0, 0);
                cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 2000, 0);
                cm.inGameDirectionEvent_AskAnswerTime(2500)
            } else {
                if (status === a++) {
                    cm.sendNormalTalk_Bottom("#face3#师父！！", 37, 3004323, false, true);
                    cm.effect_Voice("Voice5.img/CH1/Lily/4", 128)
                } else {
                    if (status === a++) {
                        cm.inGameDirectionEvent_AskAnswerTime(1000)
                    } else {
                        if (status === a++) {
                            cm.OverlapScreenDetail19(0, 2000, 3000, 1);
                            cm.inGameDirectionEvent_PushScaleInfo(0, 0, 2000, 0, 189, 191)
                        } else {
                            if (status === a++) {
                                cm.inGameDirectionEvent_AskAnswerTime(300)
                            } else {
                                if (status === a++) {
                                    cm.fieldEffect_RemoveOverlapScreenDetail(2000);
                                    cm.inGameDirectionEvent_AskAnswerTime(2500)
                                } else {
                                    if (status === a++) {
                                        cm.sendNormalTalk_Bottom("#face1#黑魔法师大人……\r\n他们正在渐渐揭晓#r虚假未来#k的真相。", 37, 3003250, false, true);
                                        cm.effect_Voice("Voice5.img/CH1/Lucid/1", 128)
                                    } else {
                                        if (status === a++) {
                                            cm.sendNormalTalk_Bottom("#face1#黑魔法师大人……就这样任由他们行动吗？", 37, 3003250, true, true);
                                            cm.effect_Voice("Voice5.img/CH1/Lucid/2", 128)
                                        } else {
                                            if (status === a++) {
                                                cm.sendNormalTalk_Bottom("路西德创造的虚假未来……\r\n是指#r未来之门#k吗？", 57, 0, true, true)
                                            } else {
                                                if (status === a++) {
                                                    cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                } else {
                                                    if (status === a++) {
                                                        cm.sendNormalTalk_Bottom("#face1#这不重要。惟有如此，人类才会懂得畏惧。", 37, 3003923, false, true);
                                                        cm.effect_Voice("Voice5.img/CH1/Heinze/8", 128)
                                                    } else {
                                                        if (status === a++) {
                                                            cm.sendNormalTalk_Bottom("#face1#虚假的未来，既定的命运，\r\n令人意志摇摆不定，唯唯诺诺的封闭世界。", 37, 3003923, true, true);
                                                            cm.effect_Voice("Voice5.img/CH1/Heinze/9", 128)
                                                        } else {
                                                            if (status === a++) {
                                                                cm.sendNormalTalk_Bottom("#face1#让人类因这巨大的骗局而愤怒吧。", 37, 3003923, true, true);
                                                                cm.effect_Voice("Voice5.img/CH1/Heinze/10", 128)
                                                            } else {
                                                                if (status === a++) {
                                                                    cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                } else {
                                                                    if (status === a++) {
                                                                        cm.inGameDirectionEvent_头顶图片(["Effect/OnUserEff.img/emotion/oh", "oid=2748788"], [0, 0, -50, 1, 0, 1, 0, 0]);
                                                                        cm.sendNormalTalk_Bottom("#face1#……！！", 37, 3003923, false, true)
                                                                    } else {
                                                                        if (status === a++) {
                                                                            cm.sendNormalTalk_Bottom("#face1#没错。这一切都是#r黑魔法师的计划#k，此前他已经预想到了自己的失败。", 37, 3003923, true, true);
                                                                            cm.effect_Voice("Voice5.img/CH1/Heinze/11", 128)
                                                                        } else {
                                                                            if (status === a++) {
                                                                                cm.sendNormalTalk_Bottom("#r未来之门#k是黑魔法师的安排？", 57, 0, true, true)
                                                                            } else {
                                                                                if (status === a++) {
                                                                                    cm.sendNormalTalk_Bottom("#face1#师父！请振作一点！", 37, 3004322, true, true);
                                                                                    cm.effect_Voice("Voice5.img/CH1/Elwyn/2", 128)
                                                                                } else {
                                                                                    if (status === a++) {
                                                                                        cm.inGameDirectionEvent_AskAnswerTime(500)
                                                                                    } else {
                                                                                        if (status === a++) {
                                                                                            cm.npc_setForceFlip("oid=2748788", -1);
                                                                                            cm.inGameDirectionEvent_AskAnswerTime(1000)
                                                                                        } else {
                                                                                            if (status === a++) {
                                                                                                cm.sendNormalTalk_Bottom("#face1#但现在，我还没能接近答案。", 37, 3003923, false, true);
                                                                                                cm.effect_Voice("Voice5.img/CH1/Heinze/12", 128)
                                                                                            } else {
                                                                                                if (status === a++) {
                                                                                                    cm.sendNormalTalk_Bottom("#face3#师父！！", 37, 3004323, true, true);
                                                                                                    cm.effect_Voice("Voice5.img/CH1/Lily/5", 128)
                                                                                                } else {
                                                                                                    if (status === a++) {
                                                                                                        cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                                                    } else {
                                                                                                        if (status === a++) {
                                                                                                            cm.fieldEffect_PlayFieldSound("Sound/SoundEff.img/borderless/heinzTeleport", 100);
                                                                                                            cm.npc_SetSpecialAction("oid=2748788", "teleport", 0, 0);
                                                                                                            cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                                                        } else {
                                                                                                            if (status === a++) {
                                                                                                                cm.userSetFieldFloating(993135004, 3, 3, 3);
                                                                                                                cm.npc_LeaveField("oid=2748788");
                                                                                                                cm.npc_LeaveField("oid=2748788");
                                                                                                                cm.inGameDirectionEvent_AskAnswerTime(700)
                                                                                                            } else {
                                                                                                                if (status === a++) {
                                                                                                                    cm.userSetFieldFloating(993135004, 0, 0, 0);
                                                                                                                    cm.inGameDirectionEvent_AskAnswerTime(1500)
                                                                                                                } else {
                                                                                                                    if (status === a++) {
                                                                                                                        cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 500, 0);
                                                                                                                        cm.inGameDirectionEvent_AskAnswerTime(500)
                                                                                                                    } else {
                                                                                                                        if (status === a++) {
                                                                                                                            cm.warp(993131500, 0, false);
                                                                                                                            cm.eventSKill(0);
                                                                                                                            cm.setInGameDirectionMode(false, true, false);
                                                                                                                            cm.setStandAloneMode(false);
                                                                                                                            cm.forceCompleteQuest(37305);
                                                                                                                            cm.dispose()
                                                                                                                        }
                                                                                                                    }
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};